<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- <meta charset="utf-8"> -->
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>TCTNB SharingResource</title>
<link href="<%=request.getContextPath()%>/js/css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/work.js"></script>
</head>
<body style="height:3000px;">
<%@ include file="top.jsp" %> 


<div style="text-align:center;clear:both">
</div>
<br />
<div >
<table width="1000px" border="0" style="margin: 0px auto">
  <tbody>
    <tr>
      <td align="center">
        <table width="70%" border="0">

  <tbody>
    <tr>
      <th colspan="4" align="left" style="text-align: left;
text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5);
border-bottom: 1px solid #CCC;
background-color: #EEE;
background-image: -moz-linear-gradient(center top , #F5F5F5, #EEE);font-size: 15px;">${sharingResource.resourceName }</th>
      </tr>
    <tr>
      <td width="90" align="left"><strong>软件类型：</strong></td>
      <td width="82" align="left" valign="middle" name="resource_type" data="${sharingResource.resourceType}"></td>
      <td width="86" align="right"><strong>上传时间：</strong></td>
      <td width="421" align="left" name="resource_creatdate" data="${sharingResource.creatDate}"></td>
    </tr>
    <tr>
      <td colspan="4" align="left" class="desTd"><strong>软件介绍：</strong></td>
      </tr>
    <tr>
      <td colspan="4" align="left" class="desDiv desDivB" name="resource_des" data="${sharingResource.resourceDes}">此资源没有介绍内容</td>
      </tr>
    <tr>
      <td width="90" align="left"><strong>下载地址：</strong></td>
      <td align="left" valign="middle"><a href="upload${sharingResource.resourceUrl}">点击下载</a></td>
      <td align="right">&nbsp;</td>
      <td align="right">&nbsp;</td>
    </tr>
    </tbody>
</table>

      
    </tr>
    
  </tbody>
</table>

</div>



<script  type="text/javascript"> 
 $(function(){
   
   $("td[name='resource_creatdate']").each(function(){
   var date = $(this).attr("data") ;
   var dateStr = $(this).attr("data").substr(0, 10) ;
   $(this).html(dateStr) ;
   })
   
    
   $("td[name='resource_type']").each(function(){
   var resource_type = $(this).attr("data") ;
   if(resource_type=="W"){
     $(this).html("windows") ;
   }else if(resource_type=="U"){
     $(this).html("ubuntu") ;
   }else if(resource_type=="D"){
     $(this).html("安装文档") ;
   }else{
     $(this).html("其他软件") ;
   }
})
   $("td[name='resource_des']").each(function(){
   var data = $(this).attr("data") ;
   if(data!=null&&data!=""){
     $(this).html(data) ;
     $(this).removeClass("desDivB")
   } 
   
   }) 
   
  })
   
 
</script>
</body>
</html>
